if "" == "%3" set expr_psw=
if not "" == "%3" set expr_psw=-pw %3
call title putty %1
call putty -load %1 -l %2 %expr_psw%
call exit